import RootPage from '../root'

export default function Page ({params}:{
  params: { slug?: string[] };
}) {
  if (!params?.slug?.length) return (
    <RootPage />
  )
  else return (
    <main>
      <h1 className="text-4xl">Content</h1>
      <h2 className="text-2xl">
        {params?.slug?.join('.') || ''}
      </h2>
    </main>
  )
}
